import {observable,computed , action} from "mobx"

class MobxData{
    @observable userinfo = {}
    @observable annoinfo = []

    @action  changeuserinfo = payload =>{
        console.log(payload);
        this.userinfo = {...this.userinfo,...payload}
    }

    @action  resetuserinfo = () =>{
        this.userinfo = {}
    }
    @action  getAnnoList = payload =>{
        console.log(payload);
        this.annoinfo = payload
    }
}

export default new MobxData()